<!DOCTYPE html>
<?php
include_once("package.php");
?>
<html lang="zh-Hans" design-width="<?php echo $package['designWidth'];?>">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <meta name="format-detection"content="telephone=no, email=no" />
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="description" content="<?php echo $package['description'];?>">
    <?php if(isset($package['share'])){?>
    <!--猫客分享标题-->
    <meta content="<?php echo $package['share']['title'];?>" name="share-title"/>
    <!--猫客分享内容-->
    <meta content="<?php echo $package['share']['content'];?>" name="share-intro"/>
    <!--猫客分享图片-->
    <meta content="<?php echo $package['share']['picture'];?>" name="mobile-image"/>
    <!--手淘分享标题-->
    <meta id="WV.Meta.Share.Title" value="<?php echo $package['share']['title'];?>" />
    <!--手淘分享内容-->
    <meta id="WV.Meta.Share.Text" value="<?php echo $package['share']['content'];?>" />
    <!--手淘分享图片-->
    <meta id="WV.Meta.Share.Image" value="<?php echo $package['share']['picture'];?>" />
    <?php } ?>
    <meta name="spm-id" content="a1z51.<?php echo $env['appKey']?>"/>
    <link rel="stylesheet" href="assets/css/spore.css?t=<?php echo $tag;?>">
    <?php if($isDevelopment){ ?>
    <link rel="stylesheet/less" type="text/css" href="assets/css/index.less?t=<?php echo $tag;?>" />
    <?php }else{ ?>
    <link rel="stylesheet" href="assets/css/index.css?t=<?php echo $tag;?>">
    <?php } ?>
    <script>window.env = <?php echo json_encode(!empty($env)?$env:array());?>; window.version = '<?php echo $package['version']?>';</script>
    <!-- <script data-pace-options='{ "ajax": false, "document": true, "eventLag":false, "elements":false }' src="assets/js/lib/pace.min.js?t=<?php echo $tag;?>"></script> -->
    <title><?php echo $package['title'];?></title>
</head>
<body>
    <div id="app"></div>
</body>
<script src="//g.alicdn.com/tmapp/tida/3.3.51/tida.js?appkey=<?php echo $env['appKey']?>"></script>
<?php if($isDevelopment){ ?>
<script src="assets/js/lib/rem.js?t=<?php echo $tag;?>"></script>
<script src="assets/js/lib/fps.js?t=<?php echo $tag;?>"></script>
<script src="assets/js/lib/util.js?t=<?php echo $tag;?>"></script>
<script src="assets/js/lib/scaleToWindow.js?t=<?php echo $tag;?>"></script>
<script src="assets/js/lib/swipe.min.js?t=<?php echo $tag;?>"></script>
<script src="assets/js/lib/axios.min.js?t=<?php echo $tag;?>"></script>
<script src="assets/js/lib/pixi.min.js?t=<?php echo $tag;?>"></script>
<script src="assets/js/lib/standalone.module.js"></script>
<script src="assets/js/lib/less-plugin-rpx2rem.js"></script>
<script>
less = { 
    plugins: [new LessPluginRpx2Rem()]
};
</script>
<script src="assets/js/lib/less.min.js" data-env="development"></script>
<script src="assets/js/lib/vConsole.js?t=<?php echo $tag;?>"></script>
<script src="assets/js/lib/im.js?t=<?php echo $tag;?>" data-cwd="assets/js/" data-main="main" data-tag="<?php echo $tag;?>" data-default="index.js"></script>
<script>
if(/debug/g.test(location.search)){
    new VConsole();
}
</script>
<?php }else{ ?>
<script src="assets/js/lib/index.js?t=<?php echo $tag;?>"></script>
<script src="assets/js/main-build.js?t=<?php echo $tag;?>" data-cwd="assets/js/" data-main="main" data-tag="<?php echo $tag;?>" data-default="index.js"></script>
<?php } ?>

</html>